<?php
/**
 * @author Eureka
 */
class TagTypes extends CActiveRecord
{

	const CATEGORIES = 11;
	const COLORS	 = 12;
	const MATERIAL	 = 13;
	
	public static function model($className = __CLASS__)
	{
		return parent::model($className);
	}

	public function tableName()
	{
		return 'tag_types';
	}

	public function relations()
	{
		return array(
			'tags' => array(
				self::HAS_MANY, 'Tags', 'tag_type_id'
			),
		);
	}
}